package com.huayal.mall.product.fegin;

import com.huayal.common.utils.R;
import com.huayal.common.vo.SkuReductionDTO;
import com.huayal.common.vo.SpuBoundsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "mall-coupon")
public interface CouponFeginService {

    @PostMapping("/coupon/skufullreduction/saveReductionInfo")
    public R saveReductionInfo(@RequestBody SkuReductionDTO skuReductionDTO);

    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    public R saveSpuBounds(@RequestBody SpuBoundsDTO spuBounds);
}
